import request from '@/utils/request'

// 查询实有人口详细
export function findPopulationById(id) {
  return request({
    url: '/system/communityPopulation/findCommunityPopulation/' + id,
    method: 'get'
  })
}

// 查询实有人口列表
export function populationList(data) {
  return request({
    url: '/system/communityPopulation/list',
    method: 'post',
    data: data
  })
}

// 新增实有人口
export function add(data) {
  return request({
    url: '/system/communityPopulation/add',
    method: 'post',
    data: data
  })
}

// 修改实有人口
export function edit(data) {
  return request({
    url: '/system/communityPopulation/edit',
    method: 'put',
    data: data
  })
}

// 删除实有人口
export function remove(id) {
  return request({
    url: '/system/communityPopulation/remove/' + id,
    method: 'delete'
  })
}
